package com.example.mall.mbg.model;

import io.swagger.annotations.ApiModelProperty;
import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

public class Data implements Serializable {
    @ApiModelProperty(value = "唯一标识每条考核数据记录")
    private Integer dataid;

    @ApiModelProperty(value = "供应商ID")
    private Integer supplierid;

    @ApiModelProperty(value = "评估指标ID")
    private Integer indicatorid;

    @ApiModelProperty(value = "考核周期，如'2023Q1'表示2023年第一季度")
    private String period;

    @ApiModelProperty(value = "数据的名称")
    private String dataname;

    @ApiModelProperty(value = "该指标在考核周期内的实际数据值")
    private BigDecimal value;

    @ApiModelProperty(value = "数据来源，如Excel导入、系统自动采集等")
    private String datasource;

    @ApiModelProperty(value = "创建时间")
    private Date createtime;

    @ApiModelProperty(value = "更新时间")
    private Date updatetime;

    private static final long serialVersionUID = 1L;

    public Integer getDataid() {
        return dataid;
    }

    public void setDataid(Integer dataid) {
        this.dataid = dataid;
    }

    public Integer getSupplierid() {
        return supplierid;
    }

    public void setSupplierid(Integer supplierid) {
        this.supplierid = supplierid;
    }

    public Integer getIndicatorid() {
        return indicatorid;
    }

    public void setIndicatorid(Integer indicatorid) {
        this.indicatorid = indicatorid;
    }

    public String getPeriod() {
        return period;
    }

    public void setPeriod(String period) {
        this.period = period;
    }

    public String getDataname() {
        return dataname;
    }

    public void setDataname(String dataname) {
        this.dataname = dataname;
    }

    public BigDecimal getValue() {
        return value;
    }

    public void setValue(BigDecimal value) {
        this.value = value;
    }

    public String getDatasource() {
        return datasource;
    }

    public void setDatasource(String datasource) {
        this.datasource = datasource;
    }

    public Date getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Date createtime) {
        this.createtime = createtime;
    }

    public Date getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Date updatetime) {
        this.updatetime = updatetime;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", dataid=").append(dataid);
        sb.append(", supplierid=").append(supplierid);
        sb.append(", indicatorid=").append(indicatorid);
        sb.append(", period=").append(period);
        sb.append(", dataname=").append(dataname);
        sb.append(", value=").append(value);
        sb.append(", datasource=").append(datasource);
        sb.append(", createtime=").append(createtime);
        sb.append(", updatetime=").append(updatetime);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}